setUriResolverAsync

abstract fun setUriResolverAsync(resolver: suspend (Uri) -> Uri?)

Sets a custom async Uri resolver. This method can be called more than once. Subsequent calls will overwrite previous calls. To remove a previously set resolver, pass the value null.

The resolver is invoked on the Engine thread. Avoid blocking; for I/O, switch contexts (e.g. withContext(Dispatchers.IO)).

Parameters

resolver

async resolution function that accepts both relative and absolute uri and returns an absolute uri.